package com.example.userservice.service;

import org.example.entity.po.UserContactApply;
import org.example.entity.query.UserContactApplyQuery;
import org.example.entity.vo.PaginationResultVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


/**
 * 联系人申请 业务接口
 */
public interface UserContactApplyService {

    /**
     * 根据条件查询列表
     */
    List<UserContactApply> findListByParam(UserContactApplyQuery param);

    /**
     * 根据条件查询列表
     */
    Integer findCountByParam(UserContactApplyQuery param);

    /**
     * 分页查询
     */
    PaginationResultVO<UserContactApply> findListByPage(UserContactApplyQuery param);

    /**
     * 新增
     */
    Integer add(UserContactApply bean);

    /**
     * 批量新增
     */
    Integer addBatch(List<UserContactApply> listBean);

    /**
     * 批量新增/修改
     */
    Integer addOrUpdateBatch(List<UserContactApply> listBean);

    /**
     * 多条件更新
     */
    Integer updateByParam(UserContactApply bean, UserContactApplyQuery param);

    /**
     * 多条件删除
     */
    Integer deleteByParam(UserContactApplyQuery param);

    void dealWithApply(HttpServletRequest request,String userId, Integer applyId, Integer status);

    void addContact(HttpServletRequest request,String applyId,String recevieId,String contactId,Integer contactType,Integer status);
}